export default function(props:any){
    const name=props.className;
    let className='w-svg';
    if(name){
        className+=' '+name;
    }
    let fn=props.onClick;
    let fnClick;
    if(fn){
        fnClick=(e:any)=>{
            fn(e);
        };
    }
    return (
        <span onClick={fnClick} className={className} style={{fontSize:props.fontSize,color:props.color}}>
            <svg viewBox="0 0 1024 1024" width="1em" height="1em" fill="currentColor">
                <path d="M898.00592562 984.09757344H125.86445938A85.96208062 85.96208062 0 0 1 39.90237874 898.13549281V126.59460781A85.83564188 85.83564188 0 0 1 125.73802156 40.758965h514.93482938a28.80417188 28.80417188 0 1 1 0 57.60834469H154.21819625a57.0551775 57.0551775 0 0 0-57.11839688 57.11839593v714.5331225a57.03937312 57.03937312 0 0 0 57.11839688 57.18161531h715.007265a57.0551775 57.0551775 0 0 0 57.11839594-57.18161531V355.44750781a28.79626969 28.79626969 0 1 1 57.59253936 0v543.2095425a85.51954688 85.51954688 0 0 1-85.93047093 85.44052313zM431.22819406 605.5894175a28.70144063 28.70144063 0 1 1-40.58661937-40.58661937L904.7387525 48.66134469a28.68563625 28.68563625 0 1 1 40.52340094 40.58661937z m0 0"></path>
                <path d="M898.00592562 991.99995219H125.86445938A93.95928844 93.95928844 0 0 1 32 898.13549281V126.59460781A93.848655 93.848655 0 0 1 125.73802156 32.85658625h514.93482938a36.70655156 36.70655156 0 1 1 0 73.41310219H154.15497687a49.15279781 49.15279781 0 0 0-49.16860312 49.21601718v714.5331225a49.31084625 49.31084625 0 0 0 49.2318225 49.27923657h715.05467906a48.83670282 48.83670282 0 0 0 34.77046782-14.41393969 49.53211219 49.53211219 0 0 0 14.38233001-34.8494925V355.44750781a36.69864844 36.69864844 0 1 1 73.3972978 0v543.2095425a93.72221625 93.72221625 0 0 1-93.8170453 93.34290188zM125.73802156 48.66134469A78.02809125 78.02809125 0 0 0 47.80475845 126.59460781v771.540885a78.13872469 78.13872469 0 0 0 78.05970092 78.05970188h772.14146625a77.90165344 77.90165344 0 0 0 78.04389657-77.58555844v-543.2095425a20.89388999 20.89388999 0 1 0-41.78778094 0v514.61873438a65.43169969 65.43169969 0 0 1-18.96571031 46.03926093 64.53082781 64.53082781 0 0 1-46.00765125 19.04473407H154.21819625a65.13140906 65.13140906 0 0 1-65.02077561-65.083995V155.48570563A64.95755625 64.95755625 0 0 1 154.17078125 90.46492999h486.6759225a20.90179312 20.90179312 0 0 0-0.1580475-41.8035853z m285.19686281 573.30180187a36.60382031 36.60382031 0 0 1-25.84077938-62.58684281L899.12806345 43.09806969a36.588015 36.588015 0 1 1 51.68155966 51.79219312L436.79146906 611.1052775a36.68284406 36.68284406 0 0 1-25.85658468 10.85786906zM925.0004525 48.12398281a20.76745219 20.76745219 0 0 0-14.65101094 6.10063688L396.23645937 570.58187749a20.80380375 20.80380375 0 1 0 29.38104563 29.46006938l514.03395845-516.34145343a20.54618531 20.54618531 0 0 0 6.16385624-14.73003469 20.97291469 20.97291469 0 0 0-20.83067156-20.83067156z"></path>
            </svg>
        </span>
    )
}